﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SchoolRegister.aspx.cs" Inherits="SchoolRegister" %>

<%@ Register Src="Share/UserControl/IndexFoot.ascx" TagName="IndexFoot" TagPrefix="uc2" %>
<%@ Register Src="Share/UserControl/IndexHead.ascx" TagName="IndexHead" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>普校就业网 - 学校注册</title>
    <link href="Content/css/indexcss.css" type="text/css" rel="Stylesheet" />

    <script type="text/javascript" src="Content/js/Infofilter.js"></script>

    <script type="text/javascript" src="Content/js/setday.js"></script>

    <script type="text/javascript">
        function $(id)
        {
            return document.getElementById(id);
        }
        
       var xhr=null;
       if(window.XMLHttpRequest)
       {
            //IE7, Mozilla ,Firefox 等浏览器内置该对象
           try
          {  
            xhr=new XMLHttpRequest();
           }
          catch(e) 
          {
                alert(e.toString());
          }
       }
       else if(window.ActiveXObject)
       {
            //IE6、IE5
           try
          {  
            xhr=new ActiveXObject("Msxml2.XMLHTTP");
           }
          catch(e) 
          {
             alert(e.toString());
          } 
       }
       if(xhr==null)
       {
            try
           { 
            xhr=new ActiveXObject("Microsoft.XMLHTTP");
           } 
           catch(e) 
          {
                alert(e.toString());
          }  
       }
        function CheckAccount()
        {
            var account=$("txtUserName");
            if(account.value=="")
            {
                alert("请输入账户名！");
                return false;
            }
            else
            {
                xhr.open("get","CheckUserNameAvailable.aspx?username="+account.value+"&usertype=3",true);
                xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
                xhr.onreadystatechange=function()
                {
                    if(xhr.readyState==4)
                    {
                        if(xhr.status==200)
                        {
                            if(xhr.responseText=="UnRegister")
                            {
                                $("tr1").style.display="";
                                $("lbAccountInfo").innerHTML="恭喜您，该账号可以被注册！";
                            }
                            else
                            {
                                 $("tr1").style.display="";
                                $("lbAccountInfo").innerHTML="对不起，该账号已被注册！";
                            }
                        }
                    }
                }
                xhr.send(null);
            }
        }
        function CheckStep2Info()
        {            
            //判断学校名
            var schoolname=$("txt_SchoolName");
            if(!(isnull(schoolname.value)))
            {
                alert("学校名不能为空！");
                schoolname.focus();
                return false;
            }
            
            //判断成立日期
            var createdate=$("txtCreateDate");
            if(!(isnull(createdate.value)))
            {
                alert("成立日期不能为空！");
                return false;
            }
            
             //判断学校简介
            var desc=$("txt_SchoolMemo");
            if(!(isnull(desc.value)))
            {
                alert("学校简介不能为空！");
                desc.focus();
                return false;
            }
            
            //判断联系人
            var person=$("txtContactPerson");
            if(!(isnull(person.value)))
            {
                alert("联系人不能为空！");
                person.focus();
                return false;
            }
            
            //判断联系电话
            var phone=$("txtTelephone");
            if(!(isnull(phone.value)))
            {
                alert("联系电话不能为空！");
                phone.focus();
                return false;
            }
            
            //判断联系地址
            var address=$("txtAddress");
            if(!(isnull(address.value)))
            {
                alert("联系地址不能为空！");
                address.focus();
                return false;
            }
            
            //判断邮政编码
            var zip=$("txtZipCode");
            if(!(isnull(zip.value)))
            {
                alert("邮政编码不能为空！");
                zip.focus();
                return false;
            }
            //判断城市
            var city=$("ddlcity");
            if(city.options[city.selectedIndex].text=="请选择")
            {
                alert("所在城市不能为空！");
                return false;
            }
            
        }
        function CheckInfo()
        {
           //判断用户名
            var username=$("txtUserName");
            if(!(isnull(username.value)))
            {
                alert("用户名不能为空！");
                username.focus();
                return false;
            }
            
           //判断密码和确认密码
        
            var newpassword=$("txtPassword");
            var confirmpassword=$("txtCheckPassword");
            if(!(isnull(newpassword.value)))
            {
                alert("密码不能为空！");
                newpassword.focus();
                return false;
            }
            if(!(isnull(confirmpassword.value)))
            {
                alert("确认密码不能为空！");
                confirmpassword.focus();
                return false;
            }
            if(!(checkpassword(newpassword.value,confirmpassword.value)))
            {
                alert("两次输入的密码不一致，请重新输入！");
                confirmpassword.focus();
                return false; 
            }
            //判断电子邮箱
            var email=$("txtEmail");
            if(!(isnull(email.value)))
            {
                alert("电子邮箱不能为空！");
                email.focus();
                return false;
            }
            if(!(checkemail(email.value)))
            {
                alert("电子邮箱格式不正确，请正确填写！");
                email.focus(); 
                return false;
            }
            //判断密码提示
            var question=$("txtQuestion");
            if(!(isnull(question.value)))
            {
                alert("密码提示不能为空！");
                question.focus();
                return false;
            }
            //判断问题答案
            var answer=$("txtAnswer");
            if(!(isnull(answer.value)))
            {
                alert("问题答案不能为空！");
                answer.focus();
                return false;
            }
            
            $("tdStepImage").style.backgroundImage="url(Content/images/school_02.gif)";
            $("tableStep1").style.display="none";
            $("tableStep2").style.display="";
        }
    </script>

</head>
<body topmargin="0">
    <form id="form1" runat="server">
        <div>
            <table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td valign="top">
                        <table width="1004" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center" valign="top">
                                    <uc1:IndexHead ID="IndexHead1" runat="server" />
                                </td>
                            </tr>
                        </table>
                        <table width="1004" height="92" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td id="tdStepImage" width="1004" height="92" valign="top" background="Content/images/school_01.gif">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <!--step1 -->
                        <table id="tableStep1" width="1004" height="416" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="462" height="42" align="right" valign="middle">
                                </td>
                                <td width="48" height="42" valign="top">
                                </td>
                                <td width="494" valign="middle">
                                </td>
                            </tr>
                            <tr>
                                <td height="289" colspan="3" align="center" valign="top">
                                    <table width="359" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="359" height="16" valign="top">
                                                <img name="huiyuanzhuce_r4_c2" src="Content/images/huiyuanzhuce_r4_c2.jpg" width="359"
                                                    height="16" border="0" id="huiyuanzhuce_r4_c2" alt="" /></td>
                                        </tr>
                                        <tr>
                                            <td width="359" height="236" valign="middle" background="Content/images/huiyuanzhuce_r5_c2.jpg">
                                                <table width="359" border="0" cellspacing="0" cellpadding="0">
                                                    <tr style="height: 40px;">
                                                        <td height="25" align="right" valign="middle" class="d">
                                                            用 户 名：&nbsp;</td>
                                                        <td height="25" align="left" valign="middle" class="d">
                                                            <asp:TextBox MaxLength="20" Width="150px" ID="txtUserName" runat="server"></asp:TextBox><a
                                                                href="javascript:void(0);" style="color: Red;" id="aCheckName" onclick="CheckAccount();">检测账户</a></td>
                                                    </tr>
                                                    <tr id="tr1" style="display: none;">
                                                        <td height="25" align="right" valign="middle" class="d">
                                                        </td>
                                                        <td height="25" align="left" valign="middle" class="fff">
                                                            <label id="lbAccountInfo">
                                                            </label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="25" align="right" valign="middle" class="d">
                                                            密 码：&nbsp;</td>
                                                        <td height="25" align="left" valign="middle" class="d">
                                                            <asp:TextBox ID="txtPassword" Width="150px" TextMode="Password" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr style="height: 40px;">
                                                        <td height="25" align="right" valign="middle" class="d">
                                                            确认密码：&nbsp;</td>
                                                        <td height="25" align="left" valign="middle" class="d">
                                                            <asp:TextBox Width="150px" ID="txtCheckPassword" TextMode="Password" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr style="height: 40px;">
                                                        <td width="116" height="25" align="right" valign="middle" class="d">
                                                            密码提示：&nbsp;</td>
                                                        <td width="243" height="25" align="left" valign="middle" class="d">
                                                            <asp:TextBox Width="150px" ID="txtQuestion" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr style="height: 40px;">
                                                        <td width="116" height="25" align="right" valign="middle" class="d">
                                                            问题答案：&nbsp;</td>
                                                        <td width="243" height="25" align="left" valign="middle" class="d">
                                                            <asp:TextBox Width="150px" ID="txtAnswer" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr style="height: 40px;">
                                                        <td width="116" height="25" align="right" valign="middle" class="d">
                                                            邮 箱：&nbsp;</td>
                                                        <td width="243" height="25" align="left" valign="middle" class="d">
                                                            <asp:TextBox Width="150px" ID="txtEmail" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr style="height: 40px;">
                                                        <td height="25" align="right" valign="middle" class="d">
                                                            &nbsp;</td>
                                                        <td height="25" align="left" valign="middle" class="fff">
                                                            请填写有效的E-mail地址</td>
                                                    </tr>
                                                    <tr style="height: 40px;">
                                                        <td height="35" colspan="2" align="center" valign="middle" class="d">
                                                            注册前请查阅我们的 <span class="fff">服务协议</span>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="359" height="14" valign="top">
                                                <img name="huiyuanzhuce_r8_c2" src="Content/images/huiyuanzhuce_r8_c2.jpg" width="359"
                                                    height="14" border="0" id="huiyuanzhuce_r8_c2" alt="" /></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td height="85" colspan="3" align="center" valign="middle">
                                    <img src="Content/images/huiyuanzhuce_r9_c3.jpg" style="cursor: pointer;" width="102px"
                                        height="31px" onclick="return CheckInfo();" />
                                </td>
                            </tr>
                        </table>
                        <!--Step2 Start-->
                        <table id="tableStep2" style="display: none;" width="1004" border="0" cellpadding="0"
                            cellspacing="0">
                            <tr>
                                <td>
                                    <table width="100%" border="0">
                                        <tr>
                                            <td>
                                                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#f1b5a1">
                                                    <tr>
                                                        <td valign="top" bgcolor="#FFFFFF">
                                                            <table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
                                                                <tbody>
                                                                    <tr>
                                                                        <td class="font-14" height="3">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="font-14" bgcolor="#FCDADA" height="21">
                                                                            <font color="#ffffff" class="ww" style="margin-top: 2px; margin-left: 10px"><strong>
                                                                                基本资料</strong></font></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td bgcolor="#e2e2e2" height="2">
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td width="17%" height="30" align="right" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 学校名称：</td>
                                                                    <td height="30" class="d">
                                                                        <%--<input name="companyname" type="text" id="companyname" size="50" maxlength="50" style="width: 200px;" />--%>
                                                                        <asp:TextBox ID="txt_SchoolName" runat="server" MaxLength="50" Width="200px"></asp:TextBox>
                                                                        如：北京大学</td>
                                                                </tr>
                                                                <%--<tr>
                                                                    <td width="17%" height="30" align="right" bgcolor="#fff7f0" class="d">
                                                                        证件号码：</td>
                                                                    <td height="30" bgcolor="#fff7f0" class="d">                                                                        
                                                                        <asp:TextBox ID="txt_LicenceNumber" runat="server" MaxLength="25" Width="200px"></asp:TextBox>
                                                                    </td>
                                                                </tr>--%>
                                                                <tr>
                                                                    <td height="30" align="right" bgcolor="#fff7f0" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 学校性质：</td>
                                                                    <td height="30" bgcolor="#fff7f0" class="d">
                                                                        <select name="properity" id="ddlSchoolProperity" runat="server" style="width: 120px;">
                                                                            <option value="14">民办</option>
                                                                            <option>私立</option>
                                                                        </select>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30" align="right" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 成立日期：</td>
                                                                    <td height="30" class="d">
                                                                        <input type="text" runat="server" id="txtCreateDate" onfocus="setday(this)" readonly="readonly" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30" align="right" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 学生人数：</td>
                                                                    <td height="30" class="d">
                                                                        <select name="students" id="ddlstudents" runat="server" style="width: 100px;">
                                                                            <option value="9">10人以下</option>
                                                                            <option value="49">10～50人</option>
                                                                            <option value="199">50～200人</option>
                                                                            <option value="499">200～500人</option>
                                                                            <option value="999">500～1000人</option>
                                                                            <option value="1000">1000人以上</option>
                                                                        </select>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30" align="right" bgcolor="#fff7f0" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 学校所在地区：</td>
                                                                    <td height="30" bgcolor="#fff7f0" class="d">

                                                                        <script language="JavaScript" type="text/javascript"> 
function setcity2() { 
var suozaidi=$("ddlprovince");
switch (suozaidi.value) { 
case '北京': 
var labels = new Array("请选择","北京市"); 
var values = new Array("请选择","北京市"); 
break; 
case '天津' : 
var labels = new Array("请选择","天津市"); 
var values = new Array("请选择","天津市"); 
break 
case '上海' : 
var labels = new Array("请选择","上海市"); 
var values = new Array("请选择","上海市");
break 
case '重庆' : 
var labels = new Array("请选择","重庆市"); 
var values = new Array("请选择","重庆市");
break 
case '广东' : 
var labels = new Array("请选择","广州","深圳","东莞","中山","佛山","珠海","惠州","汕头","湛江","潮州","潮阳","江门","汕尾","茂名","阳江","肇庆","梅州","云浮","清远","韶关","河源","揭阳","其他"); 
var values = new Array("请选择","广州","深圳","东莞","中山","佛山","珠海","惠州","汕头","湛江","潮州","潮阳","江门","汕尾","茂名","阳江","肇庆","梅州","云浮","清远","韶关","河源","揭阳","其他");
break 
case '江苏' : 
var labels = new Array("请选择","南京","苏州","无锡","扬州","常州","镇江","南通","江阴","连云港","徐州","淮阴","宿迁","东台","泰州","仪征","丹阳","宜兴","常熟","淮安","盐城","兴化","姜堰","其他"); 
var values = new Array("请选择","南京","苏州","无锡","扬州","常州","镇江","南通","江阴","连云港","徐州","淮阴","宿迁","东台","泰州","仪征","丹阳","宜兴","常熟","淮安","盐城","兴化","姜堰","其他");
break 
case '浙江' : 
var labels = new Array("请选择","杭州","宁波","温州","金华","义乌","绍兴","湖州","余姚","临海","萧山","临安","诸暨","嵊泗","绍兴县","兰溪县","嘉兴","海宁","桐乡","衢州","上虞","嵊州","慈溪","丽水","瓯海","黄岩","椒江","台州","其他"); 
var values = new Array("请选择","杭州","宁波","温州","金华","义乌","绍兴","湖州","余姚","临海","萧山","临安","诸暨","嵊泗","绍兴县","兰溪县","嘉兴","海宁","桐乡","衢州","上虞","嵊州","慈溪","丽水","瓯海","黄岩","椒江","台州","其他");
break 
case '福建' : 
var labels = new Array("请选择","福州","厦门","泉州","漳州","石狮","三明","南平","莆田","永安","邵武","龙岩","其他"); 
var values = new Array("请选择","福州","厦门","泉州","漳州","石狮","三明","南平","莆田","永安","邵武","龙岩","其他");
break 
case '湖南' : 
var labels = new Array("请选择","长沙","湘潭","岳阳","株洲","张家界","衡阳","郴州","湘乡","汨罗","常德","津市","吉首","娄底","涟源","冷水江","怀化","洪江","益阳","耒阳","邵阳","永州","冷水滩","其他"); 
var values = new Array("请选择","长沙","湘潭","岳阳","株洲","张家界","衡阳","郴州","湘乡","汨罗","常德","津市","吉首","娄底","涟源","冷水江","怀化","洪江","益阳","耒阳","邵阳","永州","冷水滩","其他");
break 
case '湖北' : 
var labels = new Array("请选择","武汉","宜昌","孝感","荆州","襄樊","老河口","枝城","枣阳","荆门","宜城","黄石","鄂州","黄冈","咸宁","武穴","蒲昕","麻城","十堰","恩施","丹江口","利川","天门","汉川","洪湖","应城","潜江","安陆","仙桃","随州","石首","其他"); 
var values = new Array("请选择","武汉","宜昌","孝感","荆州","襄樊","老河口","枝城","枣阳","荆门","宜城","黄石","鄂州","黄冈","咸宁","武穴","蒲昕","麻城","十堰","恩施","丹江口","利川","天门","汉川","洪湖","应城","潜江","安陆","仙桃","随州","石首","其他"); 
break 
case '山东' : 
var labels = new Array("请选择","济南","青岛","烟台","淄博","潍坊","临沂","莱芜","济宁","荷泽","日照","藤州","聊城","德州","滨州","临清","青州","威海","泰安","新泰","曲阜","东营","诸城","枣庄","其他"); 
var values = new Array("请选择","济南","青岛","烟台","淄博","潍坊","临沂","莱芜","济宁","荷泽","日照","藤州","聊城","德州","滨州","临清","青州","威海","泰安","新泰","曲阜","东营","诸城","枣庄","其他");
break
case '辽宁' : 
var labels = new Array("请选择","沈阳","铁岭","抚顺","大连","本溪","营口","锦州","兴城","北票","盘锦","辽阳","铁法","鞍山","瓦房店","丹东","锦西","朝阳","阜新","海城","其他"); 
var values = new Array("请选择","沈阳","铁岭","抚顺","大连","本溪","营口","锦州","兴城","北票","盘锦","辽阳","铁法","鞍山","瓦房店","丹东","锦西","朝阳","阜新","海城","其他");
break
case '吉林' : 
var labels = new Array("请选择","长春","吉林","通化","扶余","桦甸","延吉","图门","龙井","敦化","集安","浑江","梅河口","四平","公主岭","辽源","白城","洮南","九台","其他"); 
var values = new Array("请选择","长春","吉林","通化","扶余","桦甸","延吉","图门","龙井","敦化","集安","浑江","梅河口","四平","公主岭","辽源","白城","洮南","九台","其他");
break
case '云南' : 
var labels = new Array("请选择","昆明","曲靖","大理","玉溪","丽江","楚雄","开远","迪庆","东川","昭通","个旧","保山","文山","其他"); 
var values = new Array("请选择","昆明","曲靖","大理","玉溪","丽江","楚雄","开远","迪庆","东川","昭通","个旧","保山","文山","其他");
break
case '四川' : 
var labels = new Array("请选择","成都","宜宾","泸州","内江","攀枝花","西昌","德阳","雅安","遂宁","南充","绵阳","广元","马尔康","达县","华鉴","自贡","乐山","其他"); 
var values = new Array("请选择","成都","宜宾","泸州","内江","攀枝花","西昌","德阳","雅安","遂宁","南充","绵阳","广元","马尔康","达县","华鉴","自贡","乐山","其他"); 
break
case '安徽' : 
var labels = new Array("请选择","合肥","芜湖","马鞍山","蚌埠","铜陵","淮北","淮南","亳州","巢湖","黄山","歙县","宿州","阜阳","六安","滁州","宣城","黄山","安庆","池州","其他"); 
var values = new Array("合肥","芜湖","马鞍山","蚌埠","铜陵","淮北","淮南","亳州","巢湖","黄山","歙县","宿州","阜阳","六安","滁州","宣城","黄山","安庆","池州","其他");
break
case '江西' : 
var labels = new Array("请选择","南昌","景德镇","九江","鹰潭","宜春","新余","萍乡","赣州","吉安","井冈山","抚州","临川","上饶","其他"); 
var values = new Array("请选择","南昌","景德镇","九江","鹰潭","宜春","新余","萍乡","赣州","吉安","井冈山","抚州","临川","上饶","其他");
break
case '黑龙江' : 
var labels = new Array("请选择","哈尔滨","佳木斯","牡丹江","大庆","齐齐哈尔","阿城","肇东","绥化","伊春","鹤岗","七台河","双鸭","同江","绥汾河","鸡西","北安","黑河","五大连池","其他"); 
var values = new Array("哈尔滨","佳木斯","牡丹江","大庆","齐齐哈尔","阿城","肇东","绥化","伊春","鹤岗","七台河","双鸭","同江","绥汾河","鸡西","北安","黑河","五大连池","其他");
break
case '河北' : 
var labels = new Array("请选择","石家庄","邯郸","保定","张家口","秦皇岛","辛集","邢台","泊头","唐山","北戴河","廊坊","定州","南宫","衡水","沙河","沧州","任丘","承德","涿州","其他"); 
var values = new Array("请选择","石家庄","邯郸","保定","张家口","秦皇岛","辛集","邢台","泊头","唐山","北戴河","廊坊","定州","南宫","衡水","沙河","沧州","任丘","承德","涿州","其他");
break
case '陕西' : 
var labels = new Array("请选择","西安","咸阳","宝鸡","铜川","渭南","延安","汉中","韩城","其他"); 
var values = new Array("请选择","西安","咸阳","宝鸡","铜川","渭南","延安","汉中","韩城","其他");
break
case '海南' : 
var labels = new Array("请选择","海口","三亚","琼海","通什","其他"); 
var values = new Array("请选择","海口","三亚","琼海","通什","其他");
break
case '河南' : 
var labels = new Array("请选择","郑州","洛阳","开封","鹤壁","焦作","许昌","驻马店","周口","新乡","安阳","濮阳","漯河","信阳","平顶山","三门峡","南阳","商丘","义马","其他"); 
var values = new Array("请选择","郑州","洛阳","开封","鹤壁","焦作","许昌","驻马店","周口","新乡","安阳","濮阳","漯河","信阳","平顶山","三门峡","南阳","商丘","义马","其他");
break
case '山西' : 
var labels = new Array("请选择","太原","大同","忻州","临汾","运城","长治","榆次","侯马","阳泉","晋城","其他"); 
var values = new Array("请选择","太原","大同","忻州","临汾","运城","长治","榆次","侯马","阳泉","晋城","其他");
break
case '内蒙古' : 
var labels = new Array("请选择","呼和浩特","赤峰","包头","二连浩特","临河","东胜","满洲里","乌兰浩特","霍林郭勒","集宁","乌海","海拉尔","牙克石","锡林浩特","通辽","扎兰屯","其他"); 
var values = new Array("请选择","呼和浩特","赤峰","包头","二连浩特","临河","东胜","满洲里","乌兰浩特","霍林郭勒","集宁","乌海","海拉尔","牙克石","锡林浩特","通辽","扎兰屯","其他");
break
case '广西' : 
var labels = new Array("请选择","南宁","桂林","北海","柳州","玉林","百色","河池","凭祥","钦州","梧州","合山","其他"); 
var values = new Array("请选择","南宁","桂林","北海","柳州","玉林","百色","河池","凭祥","钦州","梧州","合山","其他");
break
case '贵州' : 
var labels = new Array("请选择","贵阳","遵义","铜仁","都匀","兴义","赤水","六盘水","凯里","安顺","其他"); 
var values = new Array("请选择","贵阳","遵义","铜仁","都匀","兴义","赤水","六盘水","凯里","安顺","其他");
break
case '宁夏' : 
var labels = new Array("请选择","银川","青铜峡","吴忠","石嘴山","中卫","中宁","固原","其他"); 
var values = new Array("请选择","银川","青铜峡","吴忠","石嘴山","中卫","中宁","固原","其他");
break
case '青海' : 
var labels = new Array("请选择","西宁","格尔木","共和","德令哈","其他"); 
var values = new Array("请选择","西宁","格尔木","共和","德令哈","其他");
break
case '新疆' : 
var labels = new Array("请选择","乌鲁木齐","石河子","克拉玛依","博乐","塔城","阿勒泰","哈密","阿克苏","阿图什","昌吉","奎屯","伊宁","吐鲁番","库尔勒","喀什","和田","其他"); 
var values = new Array("请选择","乌鲁木齐","石河子","克拉玛依","博乐","塔城","阿勒泰","哈密","阿克苏","阿图什","昌吉","奎屯","伊宁","吐鲁番","库尔勒","喀什","和田","其他");
break
case '西藏' : 
var labels = new Array("请选择","拉萨","日喀则","其他"); 
var values = new Array("请选择","拉萨","日喀则","其他");
break
case '甘肃' : 
var labels = new Array("请选择","兰州","酒泉","临夏","张掖","嘉峪关","金昌","平凉","白银","武威","玉门","天水","西峰","其他"); 
var values = new Array("请选择","兰州","酒泉","临夏","张掖","嘉峪关","金昌","平凉","白银","武威","玉门","天水","西峰","其他");
break
case '台湾' : 
var labels = new Array("请选择","台北","台中","基隆","台南","其他"); 
var labels = new Array("请选择","台北","台中","基隆","台南","其他");
break
case '香港' : 
var labels = new Array("请选择","香港"); 
var values = new Array("请选择","香港");
break
case '澳门' : 
var labels = new Array("请选择","澳门"); 
var values = new Array("请选择","澳门");
break
case '国外' : 
var labels = new Array("请选择","国外"); 
var values = new Array("请选择","国外");
break
} 
var suozaidi1=$("ddlcity");
suozaidi1.options.length = 0; 
for(var i = 0; i < labels.length; i++) { 
suozaidi1.add(document.createElement("OPTION")); 
suozaidi1.options[i].text=labels[i]; 
suozaidi1.options[i].value=values[i]; 
} 
suozaidi1.selectedIndex = 0; 
} 
                                                                        </script>

                                                                        <select name="x_suozaidi" runat="server" id="ddlprovince" onchange="setcity2()">
                                                                            <option value="北京">北京 </option>
                                                                            <option value="天津">天津 </option>
                                                                            <option value="上海" selected="selected">上海 </option>
                                                                            <option value="重庆">重庆 </option>
                                                                            <option value="广东">广东 </option>
                                                                            <option value="江苏">江苏 </option>
                                                                            <option value="浙江">浙江 </option>
                                                                            <option value="福建">福建 </option>
                                                                            <option value="湖南">湖南 </option>
                                                                            <option value="湖北">湖北 </option>
                                                                            <option value="山东">山东 </option>
                                                                            <option value="辽宁">辽宁 </option>
                                                                            <option value="吉林">吉林 </option>
                                                                            <option value="云南">云南 </option>
                                                                            <option value="四川">四川</option>
                                                                            <option value="安徽">安徽</option>
                                                                            <option value="江西">江西 </option>
                                                                            <option value="黑龙江">黑龙江 </option>
                                                                            <option value="河北">河北 </option>
                                                                            <option value="陕西">陕西 </option>
                                                                            <option value="海南">海南 </option>
                                                                            <option value="河南">河南 </option>
                                                                            <option value="山西">山西 </option>
                                                                            <option value="内蒙古">内蒙古 </option>
                                                                            <option value="广西">广西</option>
                                                                            <option value="贵州">贵州 </option>
                                                                            <option value="宁夏">宁夏 </option>
                                                                            <option value="青海">青海</option>
                                                                            <option value="新疆">新疆 </option>
                                                                            <option value="西藏">西藏 </option>
                                                                            <option value="甘肃">甘肃 </option>
                                                                            <option value="台湾">台湾 </option>
                                                                            <option value="香港">香港</option>
                                                                            <option value="澳门">澳门 </option>
                                                                            <option value="国外">国外 </option>
                                                                        </select>
                                                                        省(直辖市):
                                                                        <div style="display: none">
                                                                            <input runat="server" id="CityValue" type="text" /></div>
                                                                        <select name="x_suozaidi1" id="ddlcity" runat="server" onchange="SetCityValue(this.options[this.selectedIndex].text);">
                                                                            <option value="请选择">请选择</option>
                                                                        </select>

                                                                        <script type="text/javascript">
                                                                          function SetCityValue(item)
                                                                          {
                                                                             var cvalue=$("CityValue");
                                                                             cvalue.value=item;
                                                                          }
                                                                        </script>

                                                                        <script language="JavaScript" type="text/javascript"> 
                                                                           setcity2();                                                                          
                                                                        </script>

                                                                        市(地区、县)
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30" align="right" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 学校简介：</td>
                                                                    <td height="30" class="d">
                                                                        <table width="99%" border="0" cellspacing="0" cellpadding="0">
                                                                            <tr>
                                                                                <td width="47%">
                                                                                    <%--<textarea name="company_memo" cols="50" rows="8" id="company_memo"></textarea>--%>
                                                                                    <asp:TextBox TextMode="MultiLine" Columns="50" Rows="8" ID="txt_SchoolMemo" runat="server"></asp:TextBox>
                                                                                </td>
                                                                                <td width="53%">
                                                                                    <font color="#50463d">最大5000字符,请尽可能详细填写资料，以确保贵学校资料顺利通过本站审核！</font></td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
                                                                <tbody>
                                                                    <tr>
                                                                        <td class="font-14" height="3">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="font-14" bgcolor="#FCDADA" height="21">
                                                                            <font color="#ffffff" class="ww" style="margin-top: 2px; margin-left: 10px"><strong>
                                                                                联系方式</strong></font></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td bgcolor="#e2e2e2" height="2">
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td width="17%" height="30" align="right" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 联系人：</td>
                                                                    <td height="30" class="d">
                                                                        <%--<input name="contactperson" type="text" size="30" maxlength="30" style="width: 120px;" />--%>
                                                                        <asp:TextBox Width="120px" MaxLength="15" ID="txtContactPerson" runat="server"></asp:TextBox>
                                                                        <font color="#50463d">请输入正确联系人 如：徐小姐</font></td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="17%" height="30" align="right" bgcolor="#fff7f0" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 联系电话：</td>
                                                                    <td height="30" bgcolor="#fff7f0" class="d">
                                                                        <asp:TextBox MaxLength="15" Width="120px" ID="txtTelephone" runat="server"></asp:TextBox>
                                                                        <font color="#50463d">[固定电话号码，如：021-12345678] </font>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30" align="right" class="d">
                                                                        传真号码：</td>
                                                                    <td height="30" class="d">
                                                                        <asp:TextBox Width="120px" MaxLength="15" ID="txtFax" runat="server"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30" align="right" class="d">
                                                                        学校网站：</td>
                                                                    <td height="30" class="d">
                                                                        <asp:TextBox Width="120px" ID="txtWebHome" runat="server" Text="http://"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30" align="right" bgcolor="#fff7f0" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 邮政编码：</td>
                                                                    <td height="30" bgcolor="#fff7f0" class="d">
                                                                        <asp:TextBox Width="120px" MaxLength="10" ID="txtZipCode" runat="server"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="30" align="right" class="d">
                                                                        <strong><font color="#ff6600">*</font></strong> 通讯地址：</td>
                                                                    <td height="30" class="d">
                                                                        <asp:TextBox Width="260px" ID="txtAddress" runat="server"></asp:TextBox>
                                                                        如：上海市嘉定区XX路XX号
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <%--<img src="Content/images/00.jpg" width="117" height="31" />--%>
                                                <asp:ImageButton OnClientClick="return CheckStep2Info();" ID="btnComplete" runat="server"
                                                    ImageUrl="Content/images/00.jpg" OnClick="btnComplete_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <!--Step2 End-->
                        <table width="1004" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="center" valign="middle" class="f">
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td bgcolor="#F20000" style="height: 2px">
                                            </td>
                                        </tr>
                                    </table>                                    
                                </td>
                            </tr>
                            <tr height="20">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" valign="middle" class="f">
                                    <uc2:IndexFoot ID="IndexFoot1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
